<?php

?>	
<link rel="stylesheet" type="text/css" media="screen" href="http://cheatsheets.aptanacloud.com/ck/css/cheatsheets.css?v=0.018" />
	
	<div id="container">
		<fb:tabs>
		<?php $selected_menu = (isset($selected_menu)) ? $selected_menu : "home"; ?>
		<fb:tab-item href="<?php echo $app_root_url; ?>" title="Home" <?php if($selected_menu=="home") { echo 'SELECTED="true"'; } ?> />
		<!--fb:tab-item href="<?php echo $app_root_url; ?>browse" title="Browse Catalog" <?php if($selected_menu=="your") { echo 'SELECTED="true"'; } ?> /-->
		<fb:tab-item href="<?php echo $app_root_url; ?>facebook_catalogs/received/" title="Received Items" <?php if($selected_menu=="received") { echo 'SELECTED="true"'; } ?> />
		<fb:tab-item href="<?php echo $app_root_url; ?>facebook_catalogs/sent/" title="Sent Items" <?php if($selected_menu=="sent") { echo 'SELECTED="true"'; } ?> />
		<fb:tab-item href="<?php echo $app_root_url; ?>boards" title="Message Boards" <?php if($selected_menu=="boards") { echo 'SELECTED="true"'; } ?> />
		<fb:tab-item href="<?php echo $app_root_url; ?>about" title="About This App" <?php if($selected_menu=="about") { echo 'SELECTED="true"'; } ?> />
		<fb:tab-item href="<?php echo $app_root_url; ?>invites" title="Invite Your Friends" <?php if($selected_menu=="invites") { echo 'SELECTED="true"'; } ?> />
		</fb:tabs>
		<br />
		
		<div id="content">

			<?php $session->flash(); ?>

			<?php echo $content_for_layout; ?>

		</div>
	</div>

	<?php //echo $cakeDebug; ?>